From 8c5b39029fbd26f2ee67bfce556096d47ebac139 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Thu, 22 Jan 2004 01:40:31 +0000 Subject: [PATCH] bitkeeper revision 1.686 (400f2a0fOr4fmsss35howfO9K7Gurg) XenoUtil.py: Fix paremeter types in VBD setup. --- tools/xc/py/XenoUtil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/xc/py/XenoUtil.py b/tools/xc/py/XenoUtil.py index db677e9b83..f17939a4a2 100644 --- a/tools/xc/py/XenoUtil.py +++ b/tools/xc/py/XenoUtil.py @@ -122,7 +122,7 @@ def lookup_raw_partn(partition): if line: return [ { 'device' : blkdev_name_to_number(drive), 'start_sector' : 0, - 'nr_sectors' : string.atol(line) * 2, + 'nr_sectors' : int(line) * 2, 'type' : 'Disk' } ] return None @@ -136,8 +136,8 @@ def lookup_raw_partn(partition): 'size=\s*([0-9]+), Id=\s*(\S+).*$', line) if m: return [ { 'device' : blkdev_name_to_number(drive), - 'start_sector' : string.atol(m.group(1)), - 'nr_sectors' : string.atol(m.group(2)), + 'start_sector' : int(m.group(1)), + 'nr_sectors' : int(m.group(2)), 'type' : m.group(3) } ] return None -- 2.30.2